# coding utf-8
import os
filename = "三国演义.txt.bak"
outfilename = "三国演义.txt"
with open(filename, 'r') as f:
    lines = f.readlines()
print(len(lines))
print(len(lines[0]))

num = 50
ss = []
with open(outfilename, 'w') as fo:
    for line in lines:
        line.strip()
        length = len(line)
        d = int(length/num)
        if(d>0):
            for j in range(d):
                s = ''
                for i in range(num):
                    s = s+line[j*num+i]
                s = s+'\n'
                if(len(s)>10):
                    ss.append(s)
    fo.writelines(ss)